package com.woniu.commentorder.mapper;

import com.hc.entity.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface OrderMapper {

    @Select("select * from  hc_order where code =#{order.code}")
    Order selectByOrderCode(Order order);

    @Update("update hc_order set status=#{order.status} where code=#{order.code}")
    void changeByOrderCode(Order order);
}
